/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-03-03
 * Time: 16:21
 */
public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(12);
        myLinkedList.addFirst(23);
        myLinkedList.addFirst(34);
        myLinkedList.addFirst(45);
        myLinkedList.addFirst(56);

        myLinkedList.display();
        myLinkedList.clear();
        myLinkedList.display();
    }



    public static void main1(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        //myLinkedList.createList();
        myLinkedList.addFirst(12);
        myLinkedList.addFirst(23);
        myLinkedList.addFirst(34);
        myLinkedList.addFirst(45);
        myLinkedList.addFirst(56);

        myLinkedList.addLast(66);
        myLinkedList.addIndex(0,99);
        myLinkedList.addIndex(4,109);


        myLinkedList.display();
        boolean flg=myLinkedList.contains(134);
        System.out.println(flg);
        System.out.println(myLinkedList.size());
    }
}
